<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>审核表</title>
<script type="text/javascript">
	function approve() {
		var formElement=document.getElementById("myform");
		with(formElement){
			action="${pageContext.request.contextPath}/approvalHandler/addApprovalForApprove.do";
			sunmit();
		}
	}
	function reject() {
		var formElement=document.getElementById("myform");
		with(formElement){
			action="${pageContext.request.contextPath}/approvalHandler/addApprovalForReject.do";
			submit();
		}
	}
</script>
</head>
<body>
<h3>填写审核基本信息</h3>
<form id="myform" method="post">
<fieldset style="width: 50%">     
<!--分组标签-->
    <legend>审核基本信息</legend>
    <!--设置标题-->
    审核意见：<textarea cols="40" rows="10" name="approvalContent"></textarea><br/>
    <c:if test="${approvalUserInfo!=null }">
    审批者：
    <select name='selectapprovaluser'>
        <option value="0">----请选择----</option>
        <c:forEach var="user" items="${approvalUserInfo}">
            <option value=${user.userName}>${user.userName}</option>
        </c:forEach>
    </select><br/>
    </c:if>
    <input type="hidden" name="applicationId" value="${applicationId }">
    <input type="button" value='批准' onclick="approve()">
    <input type="button" value='驳回' onclick="reject()">
    <input type="reset" value='清空'>
</fieldset>
</form>
</body>
</html>